package paf.importerandtranslators;

import java.util.ArrayList;

public class FileFactory {
	private ArrayList<FileStrategy> fileStrategies;
	
	protected FileFactory(){
		fileStrategies = new ArrayList<FileStrategy>();
		fileStrategies.add(new UmlFile());
		fileStrategies.add(new DiaFile());
	}
	
	public ArrayList<FileStrategy> getFileStrategies(){
		return fileStrategies;
	}
	public void removeFileStrategy(FileStrategy fileStrategy){
			for(int i = 0; i < fileStrategies.size(); i++){
				if(fileStrategies.get(i) == fileStrategy){
					fileStrategies.remove(i);
				}
			}
	}

}
